package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * vip支付记录对象 a_order
 *
 * @author gf
 * @date 2024-11-26
 */
public class AOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 类型(1转让2出租) */
    @Excel(name = "类型(1转让2出租)")
    private String isType;

    private Long vipId;
    private Long topId;

    private String typeName;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal orPrice;

    /** 置顶金额 */
    @Excel(name = "置顶金额")
    private BigDecimal topMoney;

    @Excel(name = "区域ID")
    private String regionId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 支付单号 */
    @Excel(name = "支付单号")
    private String payNo;

    /** 支付类型 1微信 */
    @Excel(name = "支付类型 1微信")
    private String payType;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalMoney;

    /** 支付状态 1待付款 2已付款 */
    @Excel(name = "支付状态 1待付款 2已付款")
    private Long payStatus;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 逻辑删除 */
    private Long delFlag;

    /** 是否上线 */
    @Excel(name = "是否上线")
    private String isShow;

    /** 排序 */
    @Excel(name = "排序")
    private Integer numSoft;

    private Long housId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setIsType(String isType)
    {
        this.isType = isType;
    }

    public String getIsType()
    {
        return isType;
    }

    public Long getVipId() {
        return vipId;
    }

    public void setVipId(Long vipId) {
        this.vipId = vipId;
    }

    public Long getTopId() {
        return topId;
    }

    public void setTopId(Long topId) {
        this.topId = topId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setOrPrice(BigDecimal orPrice)
    {
        this.orPrice = orPrice;
    }

    public BigDecimal getOrPrice()
    {
        return orPrice;
    }
    public void setTopMoney(BigDecimal topMoney)
    {
        this.topMoney = topMoney;
    }

    public BigDecimal getTopMoney()
    {
        return topMoney;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setPayNo(String payNo)
    {
        this.payNo = payNo;
    }

    public String getPayNo()
    {
        return payNo;
    }
    public void setPayType(String payType)
    {
        this.payType = payType;
    }

    public String getPayType()
    {
        return payType;
    }
    public void setTotalMoney(BigDecimal totalMoney)
    {
        this.totalMoney = totalMoney;
    }

    public BigDecimal getTotalMoney()
    {
        return totalMoney;
    }
    public void setPayStatus(Long payStatus)
    {
        this.payStatus = payStatus;
    }

    public Long getPayStatus()
    {
        return payStatus;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDelFlag(Long delFlag)
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag()
    {
        return delFlag;
    }
    public void setIsShow(String isShow)
    {
        this.isShow = isShow;
    }

    public String getIsShow()
    {
        return isShow;
    }
    public void setNumSoft(Integer numSoft)
    {
        this.numSoft = numSoft;
    }

    public Integer getNumSoft()
    {
        return numSoft;
    }

    public Long getHousId() {
        return housId;
    }

    public void setHousId(Long housId) {
        this.housId = housId;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }


    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("isType", getIsType())
            .append("orPrice", getOrPrice())
            .append("topMoney", getTopMoney())
            .append("orderNo", getOrderNo())
            .append("payNo", getPayNo())
            .append("payType", getPayType())
            .append("totalMoney", getTotalMoney())
            .append("payStatus", getPayStatus())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("isShow", getIsShow())
            .append("numSoft", getNumSoft())
            .toString();
    }
}
